package com.forum.entity.view;

import com.forum.entity.PsychologistEntity;
import org.apache.commons.beanutils.BeanUtils;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;

/**
 * @ClassNamePsychologistView
 * @Author 张继成
 * @Date 2023/11/25 15:48
 */
public class PsychologistView extends PsychologistEntity implements Serializable {

    private static final long serialVersionUID=1L;
    public PsychologistView(){

    }

    //捕获异常
    public PsychologistView(PsychologistEntity psychologistEntity){
        try {
            BeanUtils.copyProperties(this, psychologistEntity);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }
}
